from urllib.parse import urlparse, parse_qs

def normalize_url(url):
    parsed = urlparse(url)
    params = parse_qs(parsed.query)
    core_params = {k: v[0] for k, v in params.items() if k not in ['time', 'nonce', '_']}
    query = '&'.join(f"{k}={v}" for k, v in sorted(core_params.items()))
    return f"{parsed.scheme}://{parsed.netloc}{parsed.path}{'?' + query if query else ''}"
